﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Themes/Django/Site.Master" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="headContent" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
<script type="text/javascript" src="<%=ResolveUrl("~/Content/FckEditor/fckeditor.js")%>"></script>
</asp:Content>


<asp:Content ID="bodyContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<form action="save" method="post" id="entry">
    <div id="edit">
    <p>
        <label>Title<br /> <input id="title" name="title" type="text" size="50"/></label>
    </p>
    <p>
        <label>Author<br /> <input id="author" name="author" type="text" size="50"/></label>
    </p>
    <p>
        <label>Description<br /> <input id="description" name="description" type="text" size="100"/></label>
    </p>
    <p>
        <label>Tags <small>(comma separated)</small><br /> <input id="tags" name="tags" type="text" size="50"/></label>
    </p>
    </div>
    <div id="editbody">
    <p>
        <label>Body<br /></label> 
        
	    <script type="text/javascript">
            <!--
            // Automatically calculates the editor base path based on the _samples directory.
            // This is usefull only for these samples. A real application should use something like this:
            // oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
            var sBasePath = '<%=ResolveUrl("~/Content/FckEditor/")%>';

            var oFCKeditor = new FCKeditor( 'body' ) ;
            oFCKeditor.BasePath	= sBasePath ;
            oFCKeditor.Height	= 500 ;
            //oFCKeditor.Value	= '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
            oFCKeditor.Create() ;
            //-->
	    </script>
	
    </p>
    </div>	
	<input id="save" type="submit" value="submit" />
</form>
</asp:Content>
